package com.rul.mars.mbg.config;

import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType;
import org.mybatis.generator.internal.types.JavaTypeResolverDefaultImpl;

import java.sql.Timestamp;

/**
 * 修改mysql类型对应关系
 *
 * @author RuL
 */
public class JavaTypeResolverImpl extends JavaTypeResolverDefaultImpl {

    public JavaTypeResolverImpl() {
        super();
        super.typeMap.put(93,
                new JavaTypeResolverDefaultImpl.JdbcTypeInformation("TIMESTAMP",
                        new FullyQualifiedJavaType(Timestamp.class.getName())));
    }
}
